<!doctype HTML public "-//W3C//DTD HTML 4.0 Frameset//EN">

<html>

<head>
<title>Application</title>
<meta http-equiv="content-type" content="text/html; charset=windows-1252">
<meta name="generator" content="RoboHelp by eHelp Corporation www.ehelp.com">
<link rel="stylesheet" href="../../Romes_ns.css"><script type="text/javascript" language="JavaScript" title="WebHelpSplitCss">
<!--
if (navigator.appName !="Netscape")
{   document.write("<link rel='stylesheet' href='../../Romes.css'>");}
//-->
</script>
<style type="text/css">
<!--
hr.whs1 { float:aligncenter; width:50%; x-condition:OLH; }
img_whs2 { border:none; width:32px; height:37px; float:none; border-style:none; }
p.whs3 { font-weight:bold; }
ol.whs4 { list-style:decimal; }
img_whs5 { border:none; width:36px; height:37px; float:none; border-style:none; }
table.whs6 { x-cell-content-align:top; width:100%; border-spacing:0px; }
col.whs7 { width:15.293%; }
col.whs8 { width:84.707%; }
tr.whs9 { x-cell-content-align:top; }
td.whs10 { width:15.293%; padding-right:10px; padding-left:10px; border-right-style:None; border-left-style:None; border-top-style:None; border-bottom-style:None; }
table.whs11 { x-cell-content-align:top; border-spacing:0px; }
td.whs12 { padding-right:10px; padding-left:10px; border-right-style:none; border-left-style:none; border-top-style:none; border-bottom-style:none; }
p.whs13 { margin-top:6pt; }
td.whs14 { width:84.707%; padding-right:10px; padding-left:10px; border-top-style:None; border-bottom-style:None; border-right-style:None; }
table.whs15 { x-cell-content-align:top; width:100%; background-color:#c0c0c0; border-left-style:Outset; border-left-width:4px; border-right-style:Outset; border-right-width:4px; border-top-style:Outset; border-top-width:4px; border-bottom-style:Outset; border-bottom-width:4px; border-spacing:0px; }
col.whs16 { width:11.111%; }
td.whs17 { width:11.111%; padding-right:10px; padding-left:10px; border-top-style:Outset; border-top-width:1px; border-top-color:#000000; border-right-style:Outset; border-right-width:1px; border-right-color:#000000; border-bottom-style:Outset; border-bottom-width:1px; border-bottom-color:#000000; border-left-style:Outset; border-left-width:1px; border-left-color:#000000; }
td.whs18 { width:11.111%; padding-right:10px; padding-left:10px; border-top-color:#000000; border-right-color:#000000; border-bottom-color:#000000; border-bottom-width:1px; border-bottom-style:Outset; border-right-width:1px; border-right-style:Outset; border-top-width:1px; border-top-style:Outset; }
td.whs19 { width:11.111%; padding-right:10px; padding-left:10px; border-top-color:#000000; border-right-color:#000000; border-bottom-color:#000000; border-bottom-width:1px; border-bottom-style:Outset; border-right-style:Outset; border-top-width:1px; border-top-style:Outset; border-right-width:1px; }
td.whs20 { width:11.111%; padding-right:10px; padding-left:10px; background-color:#00ffff; border-top-color:#000000; border-top-style:Outset; border-right-color:#000000; border-right-style:Outset; border-bottom-color:#000000; border-bottom-style:Outset; border-top-width:1px; border-bottom-width:1px; border-right-width:1px; }
td.whs21 { width:11.111%; padding-right:10px; padding-left:10px; border-top-color:#000000; border-top-width:1px; border-top-style:Outset; border-right-color:#000000; border-right-style:Outset; border-bottom-color:#000000; border-bottom-width:1px; border-bottom-style:Outset; border-right-width:1px; }
td.whs22 { width:11.111%; padding-right:10px; padding-left:10px; border-top-style:Outset; border-top-color:#000000; border-right-style:Outset; border-right-color:#000000; border-bottom-style:Outset; border-bottom-color:#000000; border-top-width:1px; border-bottom-width:1px; border-right-width:1px; background-color:#00ffff; }
td.whs23 { width:11.111%; padding-right:10px; padding-left:10px; border-top-style:Outset; border-top-width:1px; border-top-color:#000000; border-right-style:Outset; border-right-width:1px; border-right-color:#000000; border-bottom-style:Outset; border-bottom-width:1px; border-bottom-color:#000000; }
td.whs24 { width:11.111%; padding-right:10px; padding-left:10px; border-top-color:#000000; border-right-color:#000000; border-bottom-color:#000000; border-bottom-width:1px; border-bottom-style:Outset; border-top-width:1px; border-top-style:Outset; border-right-width:1px; border-right-style:Outset; }
td.whs25 { width:11.111%; padding-right:10px; padding-left:10px; border-right-style:none; border-left-style:none; border-top-style:none; border-bottom-style:none; }
td.whs26 { width:11.111%; padding-right:10px; padding-left:10px; border-right-style:none; border-top-style:none; border-bottom-style:none; }
td.whs27 { width:11.111%; padding-right:10px; padding-left:10px; border-top-style:none; border-bottom-style:none; border-right-style:none; }
img_whs28 { border:none; width:20px; height:23px; float:none; x-condition:OLH; border-style:none; }
-->
</style><script type="text/javascript" language="JavaScript">
<!--
function ehlp_showtip(current,e,text)
{
  if ((parseInt(navigator.appVersion) == 4) && (navigator.appName == 'Netscape'))
  {
    document.tooltip.document.write("<layer bgColor='yellow' style='border:1px solid black;font-size:12px;'>"+ text + "</layer>");
    document.tooltip.document.close();
    document.tooltip.left=e.pageX+5;
    document.tooltip.top=e.pageY+5;
    document.tooltip.visibility="show";
  }
}
function ehlp_hidetip()
{
  document.tooltip.visibility="hidden";
}
//-->
</script>
<script type="text/javascript" language="JavaScript" title="WebHelpInlineScript">
<!--
function reDo() {
  if (innerWidth != origWidth || innerHeight != origHeight)
     location.reload();
}
if ((parseInt(navigator.appVersion) == 4) && (navigator.appName == "Netscape")) {
	origWidth = innerWidth;
	origHeight = innerHeight;
	onresize = reDo;
}
onerror = null; 
//-->
</script>
<style type="text/css">
<!--
div.WebHelpPopupMenu { position:absolute; left:0px; top:0px; z-index:4; visibility:hidden; }
-->
</style><script type="text/javascript" language="javascript1.2" src="../../whmsg.js"></script>
<script type="text/javascript" language="javascript" src="../../whver.js"></script>
<script type="text/javascript" language="javascript1.2" src="../../whproxy.js"></script>
<script type="text/javascript" language="javascript1.2" src="../../whutils.js"></script>
<script type="text/javascript" language="javascript1.2" src="../../whtopic.js"></script>
</head>
<body><script type="text/javascript" language="javascript1.2">
<!--
if (window.gbWhTopic)
{
	if (window.addTocInfo)
	{
	addTocInfo("Remote Control - General Description\nStatus Reporting System\nApplication");
addTocInfo("Remote Control - General Description\nStatus Reporting System\nApplication\nParallel Poll");
addTocInfo("Remote Control - General Description\nStatus Reporting System\nApplication\nService Request");
addTocInfo("Remote Control - General Description\nStatus Reporting System\nApplication\nSerial Poll");
addTocInfo("Remote Control - General Description\nStatus Reporting System\nApplication\nDecimal Representation");
addTocInfo("Remote Control - General Description\nStatus Reporting System\nApplication\nCommands");
addTocInfo("Remote Control - General Description\nStatus Reporting System\nApplication\nError Queue");
addButton("show",BTN_TEXT,"Show","","","","",0,0,"","","");

	}
	if (window.writeBtnStyle)
		writeBtnStyle();

	if (window.writeIntopicBar)
		writeIntopicBar(1);

	if (window.setRelStartPage)
	{
	setRelStartPage("../../Start.htm");

		autoSync(1);
		sendSyncInfo();
		sendAveInfoOut();
	}
}
else
	if (window.gbIE4)
		document.location.reload();
//-->
</script><script type="text/javascript" language="JavaScript1.2" src="../../ehlpdhtm.js" x-save-method="compute-relative" name="EHELP_DHTM"></script>
<script type="text/javascript"
		language=JavaScript1.2>
<!-- 
if( typeof( kadovInitEffects ) != 'function' ) kadovInitEffects = new Function();if( typeof( kadovInitTrigger ) != 'function' ) kadovInitTrigger = new Function();if( typeof( kadovFilePopupInit ) != 'function' ) kadovFilePopupInit = new Function();if( typeof( kadovTextPopupInit ) != 'function' ) kadovTextPopupInit = new Function();
 //-->
</script>


<h3>Application of the Status Reporting System &nbsp;&nbsp;
<a href="javascript:void(0);" onClick="var e; if (parseInt(navigator.appVersion)>=4){e=event;}  if (parseInt(navigator.appVersion) >=2 && typeof(PopupMenu_Invoke) == 'function') PopupMenu_Invoke(e,'','Common Commands','../../SCPI_Reference/Common_Commands.htm','STATus commands','../../SCPI_Reference/STATus/STATus.htm','Status Reporting System','Status_Reporting_System.htm');return false;" title="Related Topics"><img src="../../ss_btn_related_topics1.gif" border=0 height=17 width=82 alt="Related Topics"></a>

 </h3>

<p>The purpose of the status reporting system is to monitor the status 
 of one or several devices in a measuring system. To do this and react 
 appropriately, the controller must receive and evaluate the information 
 of all devices. The following standard methods are used: </p>

<ul>
	
	<li class=kadov-p-Clist><p class=list><a href="Application.htm#Service_Request"
											id=A1
											style="/*begin!kadov{{*/ position: relative; /*}}end!kadov*/ ">Service 
 request</a><script type="text/javascript"
										language=JavaScript1.2><!--
kadovInitEffects('A1');
//--></script> 
 (SRQ) initiated by the measuring device</p></li>
	
	<li class=kadov-p-Clist><p class=list><a href="Application.htm#Serial_Poll"
											id=A2
											style="/*begin!kadov{{*/ position: relative; /*}}end!kadov*/ ">Serial 
 poll</a><script type="text/javascript"
									language=JavaScript1.2><!--
kadovInitEffects('A2');
//--></script> 
 of all devices in the bus system, initiated by the controller in order 
 to find out who sent a SRQ and why </p></li>
	
	<li class=kadov-p-Clist><p class=list><a href="Application.htm#Parallel_Poll"
											id=A3
											style="/*begin!kadov{{*/ position: relative; /*}}end!kadov*/ ">Parallel 
 poll</a><script type="text/javascript"
									language=JavaScript1.2><!--
kadovInitEffects('A3');
//--></script> 
 of all devices</p></li>
	
	<li class=kadov-p-Clist><p class=list>Query of a specific <a href="Application.htm#Commands"
	id=A4
	style="/*begin!kadov{{*/ position: relative; /*}}end!kadov*/ ">instrument 
 status</a><script type="text/javascript"
										language=JavaScript1.2><!--
kadovInitEffects('A4');
//--></script> 
 by means of commands</p></li>
	
	<li class=kadov-p-Clist><p class=list>Query of the <a href="Application.htm#Error_Queue"
															id=A5
															style="/*begin!kadov{{*/ position: relative; /*}}end!kadov*/ ">error 
 queue</a><script type="text/javascript"
										language=JavaScript1.2><!--
kadovInitEffects('A5');
//--></script></p></li>
</ul>


<hr align="center" width="50%" class="whs1">


<h4><a name=Service_Request></a>Service Request</h4>

<p>The measuring device can send a service request (SRQ) to the controller. 
 Usually this service request causes an interrupt, to which the control 
 program can react appropriately. </p>

<p><img src="../../small_images/info_red.jpg" x-maintain-ratio="TRUE" width="32px" height="37px" border="0" class="img_whs2"><a class="dropspot" href="javascript:kadovTextPopup(this)" id="a7" style="/*begin!kadov{{*/ position: relative; /*}}end!kadov*/ ">Initiating 
 an SRQ</a><script type="text/javascript"
										language=JavaScript1.2><!--
kadovInitEffects('a7');
//--></script></p>

<div class="droptext" id="POPUP158148141" style="display: 'none'; " x-ss-type="dropdown">
 <p>As shown in the <a href="Status_Reporting_System.htm#Overview"
						id=a6
						style="/*begin!kadov{{*/ position: relative; /*}}end!kadov*/ ">graphical 
 overview</a>, 
 an SRQ is initiated if one or several of bits 2, 3, 4, 5 or 7 of the status 
 byte are set and enabled in the SRE. Each of these bits summarizes the 
 information of a further register, the error queue or the output buffer. 
 </p>
 <p>The ENABle parts of the status registers can be set such that arbitrary 
 bits in an arbitrary status register initiate an SRQ. To use the possibilities 
 of the service request effectively, all bits in the enable registers SRE 
 and ESE should be set to &quot;1&quot;.</p>
</div>
<p class=space>&nbsp;</p>

<p class=space>&nbsp;</p>

<p class="whs3">Examples:</p>

<ul>
	
	<li class=kadov-p-Clist><p class=list><a class="dropspot" href="javascript:kadovTextPopup(this)" id="a8" style="/*begin!kadov{{*/ position: relative; /*}}end!kadov*/ ">Use 
 <span style="font-family: 'Courier New', monospace;">*OPC</span> to generate 
 an SRQ</a><script type="text/javascript"
										language=JavaScript1.2><!--
kadovInitEffects('a8');
//--></script> 
 </p>
<div class="droptext" id="POPUP292339984" style="display: 'none'; " x-ss-type="dropdown">
 <ol>
  <li class=kadov-p-CProcedure>
  <p class=Procedure>Set bit 0 in the ESE 
 (Operation Complete).</p></li>
  <li class=kadov-p-CProcedure>
  <p class=Procedure>Set bit 5 in the SRE 
 (ESB).</p></li>
  <li class=kadov-p-CProcedure>
  <p class=Procedure>Insert <span style="font-family: 'Courier New', monospace;">*OPC</span> 
 in the command sequence (e.g. at the end of a sweep).</p></li>
 </ol>
 <p>As soon as all commands preceding <span style="font-family: 'Courier New', monospace;">*OPC</span> 
 have been completed, the instrument generates an SRQ. </p>
</div></li>
	
	<li class=kadov-p-Clist><p class=list><a class="dropspot" href="javascript:kadovTextPopup(this)" id="a9" style="/*begin!kadov{{*/ position: relative; /*}}end!kadov*/ ">Generate 
 an SRQ when a limit is exceeded</a><script type="text/javascript"
	language=JavaScript1.2><!--
kadovInitEffects('a9');
//--></script></p>
<div class="droptext" id="POPUP213793197" style="display: 'none'; " x-ss-type="dropdown">
 <ol>
  <li class=kadov-p-CProcedure>
  <p class=Procedure>Set bit 3 in the SRE 
 (summary bit of the STATus:QUEStionable register, set after <a HREF="../../SCPI_Reference/STATus/STATus.htm#PRESet"
	id=a11
	style="/*begin!kadov{{*/ position: relative; /*}}end!kadov*/ ">STATus:PRESet</a>)</p></li>
  <li class=kadov-p-CProcedure>
  <p class=Procedure>Set bit 10 in the STATus:QUEStionable:ENABle 
 register (summary bit of the STATus:QUEStionable:LIMit1 register)</p></li>
  <li class=kadov-p-CProcedure>
  <p class=Procedure>Set bit 1 in the STATus:QUEStionable:LIMit1:ENABle 
 register </p></li>
 </ol>
 <p>The analyzer generates a SRQ when the event associated with bit 1 of 
 the STATus:QUEStionable:LIMit1:ENABle register occurs, i.e. when any point 
 on the first trace fails the limit check. </p>
</div></li>
	
	<li class=kadov-p-Clist><p class=list><a class="dropspot" href="javascript:kadovTextPopup(this)" id="a10" style="/*begin!kadov{{*/ position: relative; /*}}end!kadov*/ ">Find 
 out which event caused an SRQ</a><script type="text/javascript"
	language=JavaScript1.2><!--
kadovInitEffects('a10');
//--></script> 
 </p>
<div class="droptext" id="POPUP218290213" style="display: 'none'; " x-ss-type="dropdown">
 <p>The procedure to find out which event caused an SRQ is analogous the 
 procedure to generate an SRQ:</p>
 <ol>
  <li class=kadov-p-CProcedure>
  <p class=Procedure><span style="font-family: 'Courier New', monospace;">STB?</span> 
 (query the contents of the status byte in decimal form)</p></li>
 </ol>
 <p>If bit 3 (QUEStionable summary bit) is set, then:</p>
 <ol start="2" type="1" class="whs4">
  <li class=kadov-p-CProcedure>
  <p class=Procedure><span style="font-family: 'Courier New', monospace;">STAT:QUES:EVENT?</span> 
 (query STATus:QUEStionable register)</p></li>
 </ol>
 <p>If bit 10 (QUEStionable:LIMit1 summary bit) is set, then:</p>
 <ol start="3" type="1" class="whs4">
  <li class=kadov-p-CProcedure>
  <p class=Procedure>Query <span style="font-family: 'Courier New', monospace;">STAT:QUES:LIMit1:EVENT?</span> 
 (query STATus:QUEStionable:LIMit1 register)</p></li>
 </ol>
 <p>If bit 1 is set, then the first trace failed the limit check. </p>
</div></li>
</ul>

<p class=Note><img src="../../small_images/note.jpg" x-maintain-ratio="TRUE" width="36px" height="37px" border="0" class="img_whs5">The SRQ is the only possibility for the instrument 
 to become active on its own. Each controller program should set the instrument 
 such that a service request is initiated in the case of malfunction. The 
 program should react appropriately to the service request. </p>


<hr align="center" width="50%" class="whs1">


<h4><a name=Serial_Poll></a>Serial Poll</h4>

<p>In a serial poll, the controller queries the STatus Bytes of the devices 
 in the bus system one after another. The query is made via interface messages, 
 so it is faster than a poll by means of <span style="font-family: 'Courier New', monospace;">*STB?</span>. 
 </p>

<p><img src="../../small_images/info_red.jpg" x-maintain-ratio="TRUE" width="32px" height="37px" border="0" class="img_whs2"><a class="dropspot" href="javascript:kadovTextPopup(this)" id="a12" style="/*begin!kadov{{*/ position: relative; /*}}end!kadov*/ ">Serial 
 poll procedure</a><script type="text/javascript"
												language=JavaScript1.2><!--
kadovInitEffects('a12');
//--></script></p>

<div class="droptext" id="POPUP243252725" style="display: 'none'; " x-ss-type="dropdown">
 <p>The serial poll method is defined in IEEE 488.1 and used to be the only 
 standard possibility for different instruments to poll the status byte. 
 The method also works for instruments which do not adhere to SCPI or IEEE 
 488.2. </p>
 <p>The quick BASIC command for executing a serial poll is &quot;IBRSP()&quot;. 
 </p>
</div>
<p>The serial poll is mainly used to obtain a fast overview of the state 
 of several instruments connected to the GPIB bus. </p>


<hr align="center" width="50%" class="whs1">


<h4><a name=Parallel_Poll></a>Parallel Poll</h4>

<p>In a parallel poll, up to eight instruments are simultaneously requested 
 by the controller by means of a single command to transmit 1 bit of information 
 each on the data lines, i.e., to set the data line allocated to each instrument 
 to a logical &quot;0&quot; or &quot;1&quot;. </p>

<p><img src="../../small_images/info_red.jpg" x-maintain-ratio="TRUE" width="32px" height="37px" border="0" class="img_whs2"><a class="dropspot" href="javascript:kadovTextPopup(this)" id="a13" style="/*begin!kadov{{*/ position: relative; /*}}end!kadov*/ ">Parallel 
 poll procedure</a><script type="text/javascript"
												language=JavaScript1.2><!--
kadovInitEffects('a13');
//--></script></p>

<div class="droptext" id="POPUP240193472" style="display: 'none'; " x-ss-type="dropdown">
 <p>In addition to the SRE register, which determines the conditions under 
 which an SRQ is generated, there is a <a HREF="Status_Registers.htm#IST_and_PPE" id="a20" style="/*begin!kadov{{*/ position: relative; /*}}end!kadov*/ ">Parallel 
 Poll Enable</a> 
 register (PPE) which is ANDed with the STB bit by bit, considering bit 
 6 – AND as well. This register is ANDed with the STB bit by bit, considering 
 bit 6 as well. The results are ORed, the result is possibly inverted and 
 then sent as a response to the parallel poll of the controller. The result 
 can also be queried without parallel poll by means of the command &quot;*IST?&quot;.</p>
 <p>The instrument first has to be set for the parallel poll using the quick 
 BASIC command &quot;IBPPC()&quot;. This command allocates a data line 
 to the instrument and determines whether the response is to be inverted. 
 The parallel poll itself is executed using &quot;IBRPP()&quot;.</p>
</div>
<p>The parallel poll method is mainly used to find out quickly which one 
 of the instruments connected to the GPIB bus has sent a service request. 
 To this effect, SRE and PPE must be set to the same value. </p>


<hr align="center" width="50%" class="whs1">


<h4 class=Linkline><a name=Commands></a>Query of an Instrument Status</h4>

<p>Each part of any status register can be read by means of queries. There 
 are two types of commands: </p>

<ul>
	
	<li class=kadov-p-Clist><p class=list>The <a HREF="../../SCPI_Reference/Common_Commands.htm"
												id=A14
												style="/*begin!kadov{{*/ position: relative; /*}}end!kadov*/ ">common 
 commands</a><script type="text/javascript"
										language=JavaScript1.2><!--
kadovInitEffects('A14');
//--></script> 
 *ESR?, *IDN?, *IST?, *STB? query the higher-level registers. </p></li>
	
	<li class=kadov-p-Clist><p class=list>The commands of the <a HREF="../../SCPI_Reference/STATus/STATus.htm"
	id=A16
	style="/*begin!kadov{{*/ position: relative; /*}}end!kadov*/ ">STATus</a><script 
 type="text/javascript"
	language=JavaScript1.2><!--
kadovInitEffects('A16');
//--></script> 
 system query the SCPI registers (STATus:QUEStionable...) </p></li>
</ul>

<p>All queries return a decimal number which represents the bit pattern 
 of the status register. This number is evaluated by the controller program.</p>

<p><a name=Decimal_Representation></a><img src="../../small_images/info_red.jpg" x-maintain-ratio="TRUE" width="32px" height="37px" border="0" class="img_whs2"><a class="dropspot" href="javascript:kadovTextPopup(this)" id="a21" style="/*begin!kadov{{*/ position: relative; /*}}end!kadov*/ "><span 
 class=dropspot>Decimal representation of a bit pattern</span></a><script 
 type="text/javascript"
	language=JavaScript1.2><!--
kadovInitEffects('a21');
//--></script></p>

<div class="droptext" id="POPUP238780167" style="display: 'none'; " x-ss-type="dropdown">
 <p>The STB and ESR registers contain 8 bits, the SCPI registers 16 bits. 
 The contents of a status register is keyed and transferred as a single 
 decimal number. To make this possible, each bit is assigned a weighted 
 value. The decimal number is calculated as the sum of the weighted values 
 of all bits in the register that are set to 1. </p>
 <table x-use-null-cells cellspacing="0" width="100%" class="whs6">
  <col class="whs7">
  <col class="whs8">
  <tr valign="top" class="whs9">
  <td width="15%" class="whs10">
  <table x-use-null-cells cellspacing="0" class="whs11">
   <col>
   <tr valign="top" class="whs9">
   <td class="whs12">
   <p>Bits</td></tr>
  </table>
  <table x-use-null-cells cellspacing="0" class="whs11">
   <col>
   <tr valign="top" class="whs9">
   <td class="whs12">
   <p class="whs13">Weight</td></tr>
  </table></td>
  <td width="84%" class="whs14">
  <table x-use-null-cells cellspacing="0" bgcolor="#C0C0C0" width="100%" class="whs15">
   <col class="whs16">
   <col class="whs16">
   <col class="whs16">
   <col class="whs16">
   <col class="whs16">
   <col class="whs16">
   <col class="whs16">
   <col class="whs16">
   <col class="whs16">
   <tr valign="top" class="whs9">
   <td width="11%" class="whs17">
   <p>0</td>
   <td width="11%" class="whs18">
   <p>1</td>
   <td width="11%" class="whs19">
   <p>2</td>
   <td bgcolor="#00FFFF" width="11%" class="whs20">
   <p>3</td>
   <td width="11%" class="whs21">
   <p>4</td>
   <td bgcolor="#00FFFF" width="11%" class="whs22">
   <p>5</td>
   <td width="11%" class="whs23">
   <p>6</td>
   <td colspan="1" rowspan="1" width="11%" class="whs24">
   <p>7</td>
   <td width="11%" class="whs24">
   <p>...</td></tr>
  </table>
  <table x-use-null-cells cellspacing="0" width="100%" class="whs6">
   <col class="whs16">
   <col class="whs16">
   <col class="whs16">
   <col class="whs16">
   <col class="whs16">
   <col class="whs16">
   <col class="whs16">
   <col class="whs16">
   <col class="whs16">
   <tr valign="top" class="whs9">
   <td width="11%" class="whs25">
   <p>1</td>
   <td width="11%" class="whs26">
   <p>2</td>
   <td width="11%" class="whs26">
   <p>4</td>
   <td width="11%" class="whs26">
   <p>8</td>
   <td width="11%" class="whs26">
   <p>16</td>
   <td width="11%" class="whs26">
   <p>32</td>
   <td colspan="1" rowspan="1" width="11%" class="whs26">
   <p>64</td>
   <td width="11%" class="whs26">
   <p>128</td>
   <td width="11%" class="whs27">
   <p>...</td></tr>
  </table></td></tr>
 </table>
 <p class=space>&nbsp;</p>
 <p><span style="font-weight: bold;"><B>Example:</B></span> The decimal value 40 
 = 32 + 8 indicates that bits no. 3 and 5 in the status register (e.g. 
 the QUEStionable status summary bit and the ESB bit in the <a HREF="Status_Registers.htm#STB_and_SRE" id="a22" style="/*begin!kadov{{*/ position: relative; /*}}end!kadov*/ ">STatus 
 Byte</a>) 
 are set. </p>
</div>
<p>Queries are usually used after an SRQ in order to obtain more detailed 
 information on the cause of the SRQ.<span style="font-weight: bold;"> 
 <B></B></span></p>


<hr align="center" width="50%" class="whs1">


<h4 class=Linkline><a name=Error_Queue></a>Error Queue</h4>

<p>Each error state in the instrument leads to an entry in the error queue. 
 The entries of the error queue are detailed plain text error messages 
 that can be looked up in the <span style="font-style: italic;"><I><a HREF="../../MMI_Reference/Info/Info_Menu.htm"
	id=A17
	style="/*begin!kadov{{*/ position: relative; /*}}end!kadov*/ ">Error 
 Log</a><script type="text/javascript"
									language=JavaScript1.2><!--
kadovInitEffects('A17');
//--></script></I></span> 
 or queried via the GPIB bus using <span style="font-family: 'Courier New', monospace;"><a 
 HREF="../../SCPI_Reference/SYSTem/SYSTem.htm#ERRor_NEXT"
	id=A18
	style="/*begin!kadov{{*/ position: relative; /*}}end!kadov*/ ">SYSTem:ERRor[:NEXT]?</a><script 
 type="text/javascript"
	language=JavaScript1.2><!--
kadovInitEffects('A18');
//--></script> 
 </span>or <span style="font-family: 'Courier New', monospace;"><a HREF="../../SCPI_Reference/SYSTem/SYSTem.htm#ERRor_ALL"
	id=A19
	style="/*begin!kadov{{*/ position: relative; /*}}end!kadov*/ ">SYSTem:ERRor:ALL?</a><script 
 type="text/javascript"
	language=JavaScript1.2><!--
kadovInitEffects('A19');
//--></script></span>. 
 Each call of <span style="font-family: 'Courier New', monospace;">SYSTem:ERRor[:NEXT]?</span> 
 provides one entry from the error queue. If no error messages are stored 
 there any more, the instrument responds with <span style="font-family: 'Courier New', monospace;">0, 
 &quot;No error&quot;</span>.</p>

<p>The error queue should be queried after every SRQ in the controller 
 program as the entries describe the cause of an error more precisely than 
 the status registers. Especially in the test phase of a controller program 
 the error queue should be queried regularly since faulty commands from 
 the controller to the instrument are recorded there as well.</p>


<hr align="center" width="50%" class="whs1">


<p class=Linkline
	style="x-condition: OLH;"><a title="Back to top" href="Application.htm" id="a15" style="x-condition: OLH; /*begin!kadov{{*/ position: relative; /*}}end!kadov*/ " onmouseover="if ((parseInt(navigator.appVersion) == 4) && (navigator.appName == 'Netscape')) ehlp_showtip(this,event,'Back to top');" onmouseout="if ((parseInt(navigator.appVersion) == 4) && (navigator.appName == 'Netscape')) ehlp_hidetip();"><img src="../../small_images/baby_up.gif" x-maintain-ratio="TRUE" width="20px" height="23px" border="0" class="img_whs28"></a><script type="text/javascript"
											language=JavaScript1.2><!--
kadovInitEffects('a15');
//--></script></p>

<script language="javascript1.2" type="text/javascript"><!--
kadovTextPopupInit('a7','POPUP158148141');
//--></script><script language="javascript1.2" type="text/javascript"><!--
kadovTextPopupInit('a8','POPUP292339984');
//--></script><script language="javascript1.2" type="text/javascript"><!--
kadovTextPopupInit('a9','POPUP213793197');
//--></script><script language="javascript1.2" type="text/javascript"><!--
kadovTextPopupInit('a10','POPUP218290213');
//--></script><script language="javascript1.2" type="text/javascript"><!--
kadovTextPopupInit('a12','POPUP243252725');
//--></script><script language="javascript1.2" type="text/javascript"><!--
kadovTextPopupInit('a13','POPUP240193472');
//--></script><script language="javascript1.2" type="text/javascript"><!--
kadovTextPopupInit('a21','POPUP238780167');
//--></script><script type="text/javascript" language="JavaScript" title="WebHelpRelatedTopics"><!--
if (parseInt(navigator.appVersion) >= 3 && typeof (WritePopupMenuLayer) == "function")
  WritePopupMenuLayer();
//--></script><script type="text/javascript" language="JavaScript">
<!--
 if ((parseInt(navigator.appVersion) == 4) && (navigator.appName == 'Netscape'))
  document.write("<div id='tooltip' class='WebHelpPopupMenu'></div>");
//-->
</script><script type="text/javascript" language="javascript1.2">
<!--
if (window.writeIntopicBar)
	writeIntopicBar(0);
//-->
</script>
</body>
</html>
